<!DOCTYPE html>
<html>
<head>
    

    

    



    <meta charset="utf-8">
    
    
    <link rel="canonical" href="http://xiejm.com/Hadoop/Hadoop_source_code_building.html">
    
    
    <title>Hadoop 源码编译安装 | XieJM&#39;s Blog | 建立博客是为了记录工作经验以及生活点滴,也是将知识和经验分享给需要的朋友，希望对你有帮助！</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <meta name="theme-color" content="#00bcd4">
    
    
    <meta name="keywords" content="Hadoop,Maven">
    <meta name="description" content="本文主要记录Hadoop2.x源码编译的详细步骤：">
<meta name="keywords" content="Hadoop,Maven">
<meta property="og:type" content="article">
<meta property="og:title" content="Hadoop 源码编译安装">
<meta property="og:url" content="http://xiejm.com/Hadoop/Hadoop_source_code_building.html">
<meta property="og:site_name" content="XieJM&#39;s Blog">
<meta property="og:description" content="本文主要记录Hadoop2.x源码编译的详细步骤：">
<meta property="og:locale" content="zh-CN">
<meta property="og:updated_time" content="2017-10-03T12:58:16.511Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Hadoop 源码编译安装">
<meta name="twitter:description" content="本文主要记录Hadoop2.x源码编译的详细步骤：">
    
        <link rel="alternate" type="application/atom+xml" title="XieJM&#39;s Blog" href="/atom.xml">
    
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="stylesheet" href="/css/style.css?v=1.6.13">
    <script>window.lazyScripts=[]</script>

    <!-- custom head -->
    

</head>

<body>
    <div id="loading" class="active"></div>

    <aside id="menu" class="hide" >
  <div class="inner flex-row-vertical">
    <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menu-off">
        <i class="icon icon-lg icon-close"></i>
    </a>
    <div class="brand-wrap" style="background-image:url(/img/brand.jpg)">
      <div class="brand">
        <a href="/" class="avatar waves-effect waves-circle waves-light">
          <img src="/img/avatar.jpg">
        </a>
        <hgroup class="introduce">
          <h5 class="nickname">XieJM</h5>
          <a href="mailto:309469843@qq.com" title="309469843@qq.com" class="mail">309469843@qq.com</a>
        </hgroup>
      </div>
    </div>
    <div class="scroll-wrap flex-col">
      <ul class="nav">
        
            <li class="waves-block waves-effect">
              <a href="/index.html"  >
                <i class="icon icon-lg icon-home"></i>
                主页
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/archives/index.html"  >
                <i class="icon icon-lg icon-archives"></i>
                归档
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/tags/index.html"  >
                <i class="icon icon-lg icon-tags"></i>
                标签
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/categories/index.html"  >
                <i class="icon icon-lg icon-th-list"></i>
                分类
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="https://github.com/xjmhz" target="_blank" >
                <i class="icon icon-lg icon-github"></i>
                Github
              </a>
            </li>
        
      </ul>      
    </div>
    <footer class="footer">
    <p>欢迎加入我们的大数据交流群：<br>群1：258669058 群2：126181630</p>   
    <p>        
        <span><a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh"><img src="/img/cc.png"></a></span>
        
        <span><a href="/atom.xml" target="_blank" class="rss" title="rss"><i class="icon icon-2x icon-rss-square"></i></a></span>
        
    </p>
    <p><span>XieJM &copy; 2017</span>
    </p>
    <p><span>
            
            Power by <a href="http://hexo.io/" target="_blank">Hexo</a> Theme <a href="https://github.com/yscoder/hexo-theme-indigo" target="_blank">indigo</a>
        </span>
    </p>
</footer>
  </div>
</aside>

    <main id="main">
        <header class="top-header" id="header">
    <div class="flex-row">
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light on" id="menu-toggle">
          <i class="icon icon-lg icon-navicon"></i>
        </a>
        <div class="flex-col header-title ellipsis">Hadoop 源码编译安装</div>
        
        <div class="search-wrap" id="search-wrap">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="back">
                <i class="icon icon-lg icon-chevron-left"></i>
            </a>
            <input type="text" id="key" class="search-input" autocomplete="off" placeholder="输入感兴趣的关键字">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="search">
                <i class="icon icon-lg icon-search"></i>
            </a>
        </div>
        
        
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menuShare">
            <i class="icon icon-lg icon-share-alt"></i>
        </a>
        
    </div>
</header>
<header class="content-header post-header">

    <div class="container fade-scale">
        <h1 class="title">Hadoop 源码编译安装</h1>
        <h5 class="subtitle">
            
                <time datetime="2017-08-31T09:42:57.371Z" itemprop="datePublished" class="page-time">
  2017-08-31
</time>


	<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/tech/">技术</a></li></ul>

            
        </h5>
    </div>

    


</header>


<div class="container body-wrap">
    
    <aside class="post-widget">
        <nav class="post-toc-wrap" id="post-toc">
            <h4>TOC</h4>
            <ol class="post-toc"><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#1-编译基础环境"><span class="post-toc-text">1.编译基础环境</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#2-yum-源配置"><span class="post-toc-text">2.yum 源配置</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#3-下载Hadoop源码包"><span class="post-toc-text">3.下载Hadoop源码包</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#4-JDK安装"><span class="post-toc-text">4.JDK安装</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#5-Maven安装"><span class="post-toc-text">5.Maven安装</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#6-protobuf安装"><span class="post-toc-text">6.protobuf安装</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#7-Findbugs安装"><span class="post-toc-text">7.Findbugs安装</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#8-Snappy压缩库安装"><span class="post-toc-text">8.Snappy压缩库安装</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#9-其他依赖安装"><span class="post-toc-text">9.其他依赖安装</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#10-编译"><span class="post-toc-text">10.编译</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#11-生成tar包"><span class="post-toc-text">11.生成tar包</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#注意事项："><span class="post-toc-text">注意事项：</span></a></li></ol>
        </nav>
    </aside>
    
<article id="post-Hadoop/Hadoop_source_code_building"
  class="post-article article-type-post fade" itemprop="blogPost">

    <div class="post-card">
        <h1 class="post-card-title">Hadoop 源码编译安装</h1>
        <div class="post-meta">
            <time class="post-time" title="2017-08-31 17:42:57" datetime="2017-08-31T09:42:57.371Z"  itemprop="datePublished">2017-08-31</time>

            
	<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/tech/">技术</a></li></ul>



            
<span id="busuanzi_container_page_pv" title="文章总阅读量" style='display:none'>
    <i class="icon icon-eye icon-pr"></i><span id="busuanzi_value_page_pv"></span>
</span>


        </div>
        <div class="post-content" id="post-content" itemprop="postContent">
            <p>本文主要记录Hadoop2.x源码编译的详细步骤：<br><a id="more"></a></p>
<h2 id="1-编译基础环境"><a href="#1-编译基础环境" class="headerlink" title="1.编译基础环境"></a>1.编译基础环境</h2><ul>
<li>CentOS 6.7 minimal</li>
<li>Hadoop 2.7.4</li>
<li>JDK 1.7+</li>
<li>Maven 3.0 or later</li>
<li>Findbugs 1.3.9 (if running findbugs)</li>
<li>ProtocolBuffer 2.5.0</li>
<li>CMake 2.6 or newer (if compiling native code)</li>
<li>Zlib devel (if compiling native code)</li>
<li>openssl devel ( if compiling native hadoop-pipes and to get the best HDFS encryption performance )</li>
<li>Internet connection for first build</li>
</ul>
<blockquote>
<p>系统原始环境特别说明：<br>系统选择minimal最小系统安装，并自定义选装以下包： Base System中的Base、Compatbillty libraries、Debugging Tools; Development中的 Development tools</p>
</blockquote>
<h2 id="2-yum-源配置"><a href="#2-yum-源配置" class="headerlink" title="2.yum 源配置"></a>2.yum 源配置</h2><p>参考本博客的yum源配置的文章:<a href="http://xiejm.com/2017/08/31/Change_CentOS_yum_repo_to_aliyun.html">yum源配置为阿里云镜像站</a></p>
<h2 id="3-下载Hadoop源码包"><a href="#3-下载Hadoop源码包" class="headerlink" title="3.下载Hadoop源码包"></a>3.下载Hadoop源码包</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div></pre></td><td class="code"><pre><div class="line">[root@hadoop001 sourcecode]<span class="comment"># pwd</span></div><div class="line">/opt/sourcecode</div><div class="line">[root@hadoop001 sourcecode]<span class="comment"># mkdir -p /opt/sourcecode</span></div><div class="line">[root@hadoop001 sourcecode]<span class="comment">#wget  http://mirror.bit.edu.cn/apache/hadoop/common/hadoop-2.7.4/hadoop-2.7.4-src.tar.gz</span></div><div class="line">[root@hadoop001 sourcecode]<span class="comment">#tar -xzvf  hadoop-2.7.4-src.tar.gz</span></div><div class="line">[root@hadoop001 sourcecode]<span class="comment">#cat ./hadoop-2.7.4-src/BUILDING.txt</span></div><div class="line"><span class="comment">#从BUILDING文件中我们可以看到编译的要求</span></div></pre></td></tr></table></figure>
<h2 id="4-JDK安装"><a href="#4-JDK安装" class="headerlink" title="4.JDK安装"></a>4.JDK安装</h2><p>参考本博客的JDK安装的文章:<a href="http://xiejm.com/2017/08/31/CentOS_setup_JDK.html">JDK安装</a></p>
<h2 id="5-Maven安装"><a href="#5-Maven安装" class="headerlink" title="5.Maven安装"></a>5.Maven安装</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div></pre></td><td class="code"><pre><div class="line">mkdir -p /opt/software</div><div class="line"><span class="built_in">cd</span> /opt/software</div><div class="line">上传apache-maven-3.3.9-bin.zip</div><div class="line">unzip apache-maven-3.3.9-bin.zip</div><div class="line"><span class="comment">#添加maven环境变量</span></div><div class="line"><span class="built_in">echo</span> <span class="string">'#SET MAVEN'</span>&gt;&gt;/etc/profile</div><div class="line"><span class="built_in">echo</span> <span class="string">'export MAVEN_HOME=/opt/software/apache-maven-3.3.9'</span> &gt;&gt;/etc/profile</div><div class="line"><span class="built_in">echo</span> <span class="string">'export  MAVEN_OPTS="-Xms256m -Xmx512m"'</span>&gt;&gt;/etc/profile</div><div class="line"><span class="built_in">echo</span> <span class="string">'export PATH=$MAVEN_HOME/bin:$PATH'</span>&gt;&gt;/etc/profile</div><div class="line"><span class="built_in">source</span> /etc/profile</div><div class="line">mvn --version</div></pre></td></tr></table></figure>
<h2 id="6-protobuf安装"><a href="#6-protobuf安装" class="headerlink" title="6.protobuf安装"></a>6.protobuf安装</h2><p>protobuf要编译安装，需安装gcc、gcc-c++、 make<br>上传 protobuf-2.5.0.tar.gz</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div></pre></td><td class="code"><pre><div class="line">tar -xzvf protobuf-2.5.0.tar.gz</div><div class="line"><span class="built_in">cd</span> protobuf-2.5.0</div><div class="line">yum install -y gcc gcc-c++ make</div><div class="line">./configure --prefix=/usr/<span class="built_in">local</span>/protobuf</div><div class="line">make &amp;&amp; make install</div><div class="line"><span class="comment">#添加protobuf环境变量</span></div><div class="line"><span class="built_in">echo</span> <span class="string">'#SET PROTOBUF'</span>&gt;&gt;/etc/profile</div><div class="line"><span class="built_in">echo</span> <span class="string">'export PROTOC_HOME=/usr/local/protobuf'</span>&gt;&gt;/etc/profile</div><div class="line"><span class="built_in">echo</span> <span class="string">'export PATH=$PROTOC_HOME/bin:$PATH'</span>&gt;&gt;/etc/profile</div><div class="line"><span class="built_in">source</span> /etc/profile</div><div class="line">protoc --version</div></pre></td></tr></table></figure>
<h2 id="7-Findbugs安装"><a href="#7-Findbugs安装" class="headerlink" title="7.Findbugs安装"></a>7.Findbugs安装</h2><p>上传 findbugs-1.3.9.zip</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div></pre></td><td class="code"><pre><div class="line">unzip findbugs-1.3.9.zip</div><div class="line"><span class="comment">#添加Findbugs环境变量</span></div><div class="line"><span class="built_in">echo</span> <span class="string">'#SET Findbugs'</span>&gt;&gt;/etc/profile</div><div class="line"><span class="built_in">echo</span> <span class="string">'export  FINDBUGS_HOME=/opt/software/findbugs-1.3.9'</span>&gt;&gt;/etc/profile</div><div class="line"><span class="built_in">echo</span> <span class="string">'export PATH=$FINDBUGS_HOME/bin:$PATH'</span>&gt;&gt;/etc/profile</div></pre></td></tr></table></figure>
<h2 id="8-Snappy压缩库安装"><a href="#8-Snappy压缩库安装" class="headerlink" title="8.Snappy压缩库安装"></a>8.Snappy压缩库安装</h2><p>安装snappy1.1.4,使Hadoop支持snappy压缩</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line">wget https://github.com/google/snappy/releases/download/1.1.4/snappy-1.1.4.tar.gz</div><div class="line">tar -zxvf snappy-1.1.4.tar.gz</div><div class="line"><span class="built_in">cd</span> snappy-1.1.4</div><div class="line">./configure</div><div class="line">make &amp;&amp; make install</div><div class="line">ll -h /usr/<span class="built_in">local</span>/lib |grep snappy</div></pre></td></tr></table></figure>
<h2 id="9-其他依赖安装"><a href="#9-其他依赖安装" class="headerlink" title="9.其他依赖安装"></a>9.其他依赖安装</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">yum install -y ant openssl openssl-devel svn ncurses-devel zlib-devel libtool svn</div><div class="line">yum install -y snappy snappy-devel bzip2 bzip2-devel lzo lzo-devel lzop autoconf automake</div></pre></td></tr></table></figure>
<h2 id="10-编译"><a href="#10-编译" class="headerlink" title="10.编译"></a>10.编译</h2><p>进入Hadooop源码目录</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line"><span class="built_in">cd</span> hadoop-2.7.4-src</div><div class="line">mvn clean package -DskipTests -Pdist,native -Dtar -Dsnappy.lib=/usr/<span class="built_in">local</span>/lib -Dbundle.snappy</div></pre></td></tr></table></figure>
<h2 id="11-生成tar包"><a href="#11-生成tar包" class="headerlink" title="11.生成tar包"></a>11.生成tar包</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">/opt/sourcecode/hadoop-2.7.4-src/hadoop-dist/target/hadoop-2.7.4.tar.gz</div></pre></td></tr></table></figure>
<h2 id="注意事项："><a href="#注意事项：" class="headerlink" title="注意事项："></a>注意事项：</h2><ul>
<li>由于Maven仓库在墙外，Maven在编译项目时下载包卡住情况，ctrl+c 中断，重新执行编译。</li>
<li>如果出现提示缺少了某个文件的情况，则要先清理maven(使用命令 mvn clean) 再重新编译。</li>
</ul>

        </div>

        <blockquote class="post-copyright">
    <div class="content">
        
<span class="post-time">
    最后更新时间：<time datetime="2017-10-03T12:58:16.511Z" itemprop="dateUpdated">2017-10-03 20:58:16</time>
</span><br>


        
        原始链接：<a href="/Hadoop/Hadoop_source_code_building.html" target="_blank" rel="external">http://xiejm.com/Hadoop/Hadoop_source_code_building.html</a>
        
    </div>
    <footer>
        <a href="http://xiejm.com">
            <img src="/img/avatar.jpg" alt="XieJM">
            XieJM
        </a>
    </footer>
</blockquote>

        


        <div class="post-footer">
            
	<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Hadoop/">Hadoop</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Maven/">Maven</a></li></ul>


            
<div class="page-share-wrap">
    

<div class="page-share" id="pageShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=http://xiejm.com/Hadoop/Hadoop_source_code_building.html&title=《Hadoop 源码编译安装》 — XieJM's Blog&pic=http://xiejm.com/img/avatar.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=http://xiejm.com/Hadoop/Hadoop_source_code_building.html&title=《Hadoop 源码编译安装》 — XieJM's Blog&source=本文主要记录Hadoop2.x源码编译的详细步骤：" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http://xiejm.com/Hadoop/Hadoop_source_code_building.html" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《Hadoop 源码编译安装》 — XieJM's Blog&url=http://xiejm.com/Hadoop/Hadoop_source_code_building.html&via=http://xiejm.com" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=http://xiejm.com/Hadoop/Hadoop_source_code_building.html" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>



    <a href="javascript:;" id="shareFab" class="page-share-fab waves-effect waves-circle">
        <i class="icon icon-share-alt icon-lg"></i>
    </a>
</div>



        </div>
    </div>

    
<nav class="post-nav flex-row flex-justify-between">
  
    <div class="waves-block waves-effect prev">
      <a href="/Hadoop/Hadoop_Pseudo-Distributed_Mode.html" id="post-prev" class="post-nav-link">
        <div class="tips"><i class="icon icon-angle-left icon-lg icon-pr"></i> Prev</div>
        <h4 class="title">Hadoop伪分布式部署</h4>
      </a>
    </div>
  

  
    <div class="waves-block waves-effect next">
      <a href="/Linux/CentOS_setup_JDK.html" id="post-next" class="post-nav-link">
        <div class="tips">Next <i class="icon icon-angle-right icon-lg icon-pl"></i></div>
        <h4 class="title">CentOS 安装JDK常用的两种方法</h4>
      </a>
    </div>
  
</nav>



    


<section class="comments" id="comments">
    <div id="disqus_thread"></div>
    <script>
    var disqus_shortname = 'true';
    lazyScripts.push('//' + disqus_shortname + '.disqus.com/embed.js')
    </script>
    <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
</section>













</article>



</div>

    </main>
    <div class="mask" id="mask"></div>
<a href="javascript:;" id="gotop" class="waves-effect waves-circle waves-light"><span class="icon icon-lg icon-chevron-up"></span></a>



<div class="global-share" id="globalShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=http://xiejm.com/Hadoop/Hadoop_source_code_building.html&title=《Hadoop 源码编译安装》 — XieJM's Blog&pic=http://xiejm.com/img/avatar.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=http://xiejm.com/Hadoop/Hadoop_source_code_building.html&title=《Hadoop 源码编译安装》 — XieJM's Blog&source=本文主要记录Hadoop2.x源码编译的详细步骤：" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http://xiejm.com/Hadoop/Hadoop_source_code_building.html" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《Hadoop 源码编译安装》 — XieJM's Blog&url=http://xiejm.com/Hadoop/Hadoop_source_code_building.html&via=http://xiejm.com" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=http://xiejm.com/Hadoop/Hadoop_source_code_building.html" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>


<div class="page-modal wx-share" id="wxShare">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <p>扫一扫，分享到微信</p>
    <img src="" alt="微信分享二维码">
</div>




    <script src="//cdn.bootcss.com/node-waves/0.7.4/waves.min.js"></script>
<script>
var BLOG = { ROOT: '/', SHARE: true, REWARD: false };


</script>

<script src="/js/main.min.js?v=1.6.13"></script>


<div class="search-panel" id="search-panel">
    <ul class="search-result" id="search-result"></ul>
</div>
<template id="search-tpl">
<li class="item">
    <a href="{path}" class="waves-block waves-effect">
        <div class="title ellipsis" title="{title}">{title}</div>
        <div class="flex-row flex-middle">
            <div class="tags ellipsis">
                {tags}
            </div>
            <time class="flex-col time">{date}</time>
        </div>
    </a>
</li>
</template>

<script src="/js/search.min.js?v=1.6.13" async></script>






<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>



<script>
(function() {
    var OriginTitile = document.title, titleTime;
    document.addEventListener('visibilitychange', function() {
        if (document.hidden) {
            document.title = 'XieJM's Blog';
            clearTimeout(titleTime);
        } else {
            document.title = 'XieJM's Blog';
            titleTime = setTimeout(function() {
                document.title = OriginTitile;
            },2000);
        }
    });
})();
</script>



</body>
</html>
